package cn.gxufe.reliable.message.admin.mq;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Service;

/**
 * @author yingjie.rong
 **/
@Service
public class MqProducerImpl implements MqProducer {

    @Autowired
    private KafkaTemplate<Integer, String> kafkaTemplate;

    @Value("${rms.kafka.queue}")
    private String rmsKafkaQueue;

    @Override
    public void send(String data) {
        kafkaTemplate.send(rmsKafkaQueue,data);
    }

}
